[#macro head]
<!DOCTYPE html>
<html>
<head>
 	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="renderer" content="webkit">
[/#macro]

[#macro maincss]
	<link href="${request.contextPath}/static/skin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
	<link href="${request.contextPath}/static/skin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
	<link href="${request.contextPath}/static/skin/css/animate.min.css" rel="stylesheet">
	<link href="${request.contextPath}/static/skin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<script type="text/javascript">window.contextPath = "${request.contextPath}";</script>
[/#macro]

[#macro mainjs]
	<!-- 全局js -->
	<script src="${request.contextPath}/static/skin/js/jquery.min.js?v=2.1.4"></script>
	<script src="${request.contextPath}/static/skin/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/layer/layer.min.js"></script>

	<!-- 自定义js -->
	<script src="${request.contextPath}/static/skin/js/hplus.min.js?v=4.1.0"></script>
	<script type="text/javascript" src="${request.contextPath}/static/skin/js/contabs.min.js"></script>
	<script type="text/javascript" src="${request.contextPath}/static/skin/js/content.min.js"></script>

	<!-- 第三方插件 -->
	<script src="${request.contextPath}/static/skin/js/plugins/pace/pace.min.js"></script>
	<script type="text/javascript">window.contextPath = "${request.contextPath}";</script>
[/#macro]

[#macro ladda ]
	<link href="${request.contextPath}/static/skin/css/plugins/ladda/ladda-themeless.min.css" rel="stylesheet">
	<script src="${request.contextPath}/static/skin/js/plugins/ladda/spin.min.js"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/ladda/ladda.min.js"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/ladda/ladda.jquery.min.js"></script>
[/#macro]

[#macro ztree ]
	<link href="${request.contextPath}/static/skin/css/plugins/zTree_v3/zTreeStyle.css" rel="stylesheet">
	<script src="${request.contextPath}/static/skin/js/plugins/zTree_v3/jquery.ztree.all-3.5.min.js"></script>
[/#macro]

[#macro sweetalert ]
	<link href="${request.contextPath}/static/skin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
	<script src="${request.contextPath}/static/skin/js/plugins/sweetalert/sweetalert.min.js"></script>
[/#macro]

[#macro dataTableCss ]
	<!-- Data Tables -->
	<link href="/static/skin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
	<link href="/static/skin/css/plugins/dataTables/dataTables.responsive.css" rel="stylesheet">
	<link href="/static/skin/css/plugins/dataTables/dataTables.tableTools.min.css" rel="stylesheet">
[/#macro]

[#macro body]
    </head>
	<body class="gray-bg pace-done ${(Session.sys_config.collapse_menu == 'N')?string('mini-navbar', '')}">
[/#macro]

[#macro dataTableScript ]
    <script src="/static/skin/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="/static/skin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="/static/skin/js/plugins/dataTables/dataTables.responsive.js"></script>
    <script src="/static/skin/js/plugins/dataTables/dataTables.tableTools.min.js"></script>
[/#macro]
[#macro formValidationScript ]
	<link href="${request.contextPath}/static/skin/css/plugins/validate/formValidation.min.css" rel="stylesheet">
	<script src="${request.contextPath}/static/skin/js/plugins/validate/formValidation.min.js" type="text/javascript"
			charset="utf-8"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/validate/framework/bootstrap.min.js" type="text/javascript"
			charset="utf-8"></script>
	<script src="${request.contextPath}/static/skin/js/plugins/validate/language/zh_CN.js" type="text/javascript"
			charset="utf-8"></script>
[/#macro]
[#macro datepickerScript ]
	<link href="/static/skin/css/plugins/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
	<!-- Data picker -->
   <script src="/static/skin/js/plugins/datapicker/bootstrap-datetimepicker.js"></script>
   <script src="/static/skin/js/plugins/datapicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
   <script src="/static/skin/js/plugins/datapicker/date-format.js"></script>
[/#macro]
[#macro icheckScript]
<link href="/static/skin/css/plugins/iCheck/custom.css" rel="stylesheet">
<script src="/static/skin/js/plugins/iCheck/icheck.min.js"></script>
 <script>
     $(document).ready(function () {
         $('.i-checks').iCheck({
             checkboxClass: 'icheckbox_square-green',
             radioClass: 'iradio_square-green'
         });
     });
 </script>
[/#macro]
[#macro fooTableCss]
	<link href="/static/skin/css/plugins/footable/footable.core.css" rel="stylesheet">
[/#macro]
[#macro fooTableScript]
	  <script src="/static/skin/js/plugins/footable/footable.all.min.js"></script>
[/#macro]
[#macro fileinputScript]
	<link href="/static/skin/css/plugins/fileinput/fileinput.css" media="all" rel="stylesheet">
	<script src="/static/skin/js/plugins/fileinput/fileinput.js" type="text/javascript"></script>
    <script src="/static/skin/js/plugins/fileinput/lang/fileinput_locale_zh.js" type="text/javascript"></script>
[/#macro]
[#macro footScript]
<script src="/static/skin/js/bootstrap.min.js"></script>
<script src="/static/skin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/skin/js/plugins/sortable/jquery.sortable.js"></script>
<script src="/static/skin/js/jquery-ajax.js"></script>
<script src="/static/skin/js/contabs.min.js"></script>

 <!-- Toastr -->
<script src="/static/skin/js/plugins/toastr/toastr.min.js"></script>
<script>
toastr.options = {
        closeButton: true,
        progressBar: true,
        showMethod: 'slideDown',
        timeOut: 4000
};
</script>
<script src="/static/skin/js/application.js?v=${.now?long}"></script>
<script src="/static/skin/js/hplus.js?v=${.now?long}"></script>
<script src="/static/skin/js/plugins/pace/pace.min.js"></script>
[/#macro]
[#macro pageScript]
<script src="/static/skin/js/page.js"></script>
[/#macro]
[#macro summernoteCss]
  <link href="/static/skin/css/plugins/summernote/summernote.css" rel="stylesheet">
[/#macro]
[#macro summernoteScript]
<script src="/static/skin/js/plugins/summernote/summernote.min.js"></script>
<script src="/static/skin/js/plugins/summernote/lang/summernote-zh-CN.js"></script>
[/#macro]
[#macro breadcrumb navigation="" title=""]
<ol class="breadcrumb" style="display: inline-block;">
	[#list navigation?eval as n]
		[#if n.active]
			<li class="active" style="display: inline-block;">
				<strong>${n.title}</strong>
			</li>
		[#else]
			<li style="display: inline-block;">
				<a data-toggle="button" [#if n.uri??]href="${request.contextPath}${n.uri}"[/#if]>${n.title}</a>
			</li>
		[/#if]
	[/#list]
</ol>
[/#macro]
[#macro menu menuGroup="" menuCode=""]
	<nav class="navbar-default navbar-static-side" role="navigation" menuGroup="${menuGroup}" menuCode="${menuCode}">
	</nav>
	 <script>
		$(function(){
			$.get("${request.contextPath}/manage/menu/${Constants.getCurrentRoleCode()}", function(data){
				$(".navbar-static-side").html(data);
			});	
		});
	</script>
[/#macro]
[#macro modalBoxTemplate id="" templateUri=""]
<div id="${id}" class="modal fade" aria-hidden="true">
   <div class="modal-dialog">
   	<div class="modal-content">
      <div class="modal-body">
      		[#include templateUri /]
      </div>
 	</div>
   </div>
</div>
[/#macro]
[#macro modalBox id=""]
<div id="${id}" class="modal fade" aria-hidden="true">
   <div class="modal-dialog">
   	<div class="modal-content">
      <div class="modal-body"></div>
 	</div>
   </div>
</div>
 <script>
 $(function(){
	 $('#${id}').on('show.bs.modal', function (e) {
	    $.get($(e.relatedTarget).attr('data-l-href'), function(data){
			$("#${id}").find('.modal-body').html(data);
		});	
	});
 });
 </script>
[/#macro]

